home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / perl5 / Shell.z / Shell
Encoding:
Text File  |  2002-10-03  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSShhhheeeellllllll((((3333))))                                                              SSSShhhheeeellllllll((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Shell - run shell commands transparently within perl
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      See below.
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.        Date: Thu, 22 Sep 94 16:18:16 -0700
  16.        Message-Id: <9409222318.AA17072@scalpel.netlabs.com>
  17.        To: perl5-porters@isu.edu
  18.        From: Larry Wall <lwall@scalpel.netlabs.com>
  19.        Subject: a new module I just wrote
  20.  
  21.      Here's one that'll whack your mind a little out.
  22.  
  23.          #!/usr/bin/perl
  24.  
  25.          use Shell;
  26.  
  27.          $foo = echo("howdy", "<funny>", "world");
  28.          print $foo;
  29.  
  30.          $passwd = cat("</etc/passwd");
  31.          print $passwd;
  32.  
  33.          sub ps;
  34.          print ps -ww;
  35.  
  36.          cp("/etc/passwd", "/tmp/passwd");
  37.  
  38.      That's maybe too gonzo.  It actually exports an AUTOLOAD to the current
  39.      package (and uncovered a bug in Beta 3, by the way).  Maybe the usual
  40.      usage should be
  41.  
  42.          use Shell qw(echo cat ps cp);
  43.  
  44.      Larry
  45.  
  46. AAAAUUUUTTTTHHHHOOOORRRR
  47.      Larry Wall
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.